gdk: Implement GInitable on GdkDisplayManager
authorThomas Wood <thomas.wood@intel.com>
Fri, 22 Feb 2013 16:41:12 +0000 (16:41 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 23 Mar 2013 02:23:39 +0000 (22:23 -0400)
commit3a9de35a6cefddc09aaf000e523f3435a955a5e7
tree9464a10b592c8170cc709b78927a95b07fbd4693
parent75f4f7a47179c6ab48ecbf07acfab16f9cd762b4
gdk: Implement GInitable on GdkDisplayManager

Add GInitable interface with a default implementation that always
succeeds. This allows backends to override the GInitable implementation
and add their own checks to determine if the backend can be loaded.  If
a backend cannot be loaded, GDK can attempt to load the next available
backend.

Since backends may need to read any relevant options (such as the
display flag) to determine if they can be created successfully, this
patch also removes calls that attempt to create the display manager
before the options have been parsed.

https://bugzilla.gnome.org/show_bug.cgi?id=694465
gdk/gdk.c
gdk/gdkdisplaymanager.c